def pow(x, n = 2):
    result = 1
    while n > 0:
        n = n - 1
        result = x * result
    
    return result

def calc(*numbers):
    sum = 0
    for n in numbers:
        sum = sum + n * n
    return sum

# print(pow(2,3))
a = [1,2,3]
print(calc(1,2,3))
print(calc(*a))